//
//  OneBigPicCell.m
//  口袋
//
//  Created by tiankun on 15/5/25.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "OneBigPicCell.h"
#import "DKNightVersion.h"

#define W  [UIScreen mainScreen].bounds.size.width
#define H  [UIScreen mainScreen].bounds.size.height
@implementation OneBigPicCell
- (void)dealloc
{
    [_digest release];
    [_title release];
    [_bigImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bigImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 10, [UIScreen mainScreen].bounds.size.width * 0.97, [UIScreen mainScreen].bounds.size.height * 0.27)];
        [self.bigImageView setBackgroundColor:[UIColor grayColor]];
        [self.contentView addSubview:self.bigImageView];
        [self.bigImageView release];
        self.title = [[UILabel alloc]initWithFrame:CGRectMake(5, H * 0.3, W * 0.97, H * 0.08)];
        self.title.nightTextColor = [UIColor lightGrayColor];
        self.title.nightTextColor = [UIColor lightGrayColor];
        [self.contentView addSubview:self.title];
        [self.title release];
        self.digest = [[UILabel alloc]initWithFrame:CGRectMake(5, H * 0.35, W * 0.97, H * 0.1)];
        self.digest.nightTextColor = [UIColor lightGrayColor];
        self.digest.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:self.digest];
        [self.digest release];
        
        [DKNightVersionManager addClassToSet:self.class];
        self.nightBackgroundColor = UIColorFromRGB(0x343434);
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
